package com.heima.feign.api;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.entity.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("leadnews-user")
public interface ApUserFeignClient {

    /**
     * 调用用户服务查询用户详情
     *
     * @param id
     * @return
     */
    @GetMapping(path = "/api/v1/user/{id}")
    public ResponseResult<ApUser> queryById(@PathVariable("id") Long id);
}
